# -*- coding: utf-8 -*-
from google.appengine.api import backends, urlfetch
import logging

url = '%s/backend/sub_worker/add' % backends.get_url('sub-worker')
for i in range(0, 10, 1):
    payload = 'batch=%d' % i
    logging.info('url=%s, batch=%s' % (url, i))
    urlfetch.fetch(url, method='POST', payload=payload, deadline=10)
